package vip.liux.contracts.models.identity;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Embeddable
@EqualsAndHashCode
public class IdentityUserTokenId implements java.io.Serializable {
    /**
     * 用户ID
     */
    @Column(name = "user_id", nullable = false)
    private Long userId;

    /**
     * 登录提供者
     */
    @Column(name = "login_provider", nullable = false, length = 64)
    private String loginProvider;

    /**
     * 名称
     */
    @Column(name = "name", nullable = false, length = 128)
    private String name;
}